Method for resizing and moving an object on a computer screen

ABSTRACT

A method for defining the size of an object displayed on a computer screen, the computer screen having a matrix of sensor points, said method comprising the steps of displaying an object on a computer screen, defining at least one screen area having a reference point associated therewith, reading an input from a sensor point in a screen area, calculating a vector between the read input and the reference point of that screen area, and defining the size of the object based on the vector.

FIELD OF THE INVENTION

[0001] The present invention relates to a method for resizing an object to be displayed on a computer screen such as a touch screen.

BACKGROUND OF THE INVENTION

[0002] Touch screens are more and more commonly used for various computer applications and for office machines such as copy machines, fax machines, graphical scanners etc. Typically a touch screen takes the place of a normal computer screen, a keyboard and/or optional peripheral equipment such as a pointing device in the form of a mouse or a track ball. In addition to the ability of displaying an image, a touch screen has a matrix with a plurality of sensitive points defined on the surface of the screen. By touching a point on the screen, the absolute position of the point on the screen being touched is registered and transmitted to the controlling CPU. This is similar to pressing a mouse button where the absolute position of a cursor is registered.

[0003] When defining a relative position or a movement of an item e.g. when dragging and dropping items on the screen, the mouse button is typically kept depressed while the cursor is moved from one position on the screen to a new position on the screen. The desired result, be that a vector defining the change in the size of the item or a vector defining the distance and direction of the movement of the item, is defined from the start point, at the time when the mouse button is depressed, to the end point, when the mouse button is released. Since applications using touch screens typically has no conventional pointing devices, such as a mouse or trackball, a similar user interface may be difficult to achieve. Applications exist wherein the start point is defined as the point a user touches the screen and by keeping the finger in contact with the screen, the user may move the finger to the end point where the finger is removed from the screen. However, it is typically an awkward process to move a finger in firm contact with a screen and due to the sensitivity of common touch screens, the above mentioned user interface for defining a relative position or movement on a screen is not suitable for many applications. As an example, the user may often have to press relatively hard against the surface of the screen in order to activate the sensitive areas of the screen and it is difficult at one time both to press hard against the screen and move the finger across the screen.

DESCRIPTION OF THE INVENTION

[0004] It is an object of the present invention to overcome the above described disadvantage of the known user interfaces by providing a method for defining the size of an object displayed on a computer screen, the computer screen having a matrix of sensor points, said method comprising the steps of:

[0005] displaying an object on a computer screen,

[0006] defining at least one screen area having a reference point associated therewith,

[0007] reading an input from a sensor point in a screen area,

[0008] calculating a vector between the read input and the reference point of that screen area, and

[0009] defining the size of the object based on that vector.

[0010] The object which is going to be resized may as an example be a picture or picture frame, text or a text frame or any other object being visualized on a computer screen. The computer screen may be a regular computer screen, even though the following description focuses on a touch screen. The computer screen may also be a window on a computer screen.

[0011] Sensor point are points on the screen selected by the user, either by mouse-clicking on the computer screen, by touching the screen or in any other way by selecting a point on the screen.

[0012] Screen Area is a predefined area of the screen. Sensor points sensed within one particular screen area are used for one particular resizing direction.

[0013] As an example, the object could be a quadrangular frame, e.g. defining the borders of a graphical image. When a user wants to define the borders of the graphical image, e.g. when framing a digital photo, the size of the frame is defined and the frame is positioned in relation to the photo so that the desired part of the photo is encapsulated by the frame. For this purpose, a method for the resizing of the frame according to the present invention is highly advantageous. Preferably 8 screen areas are defined outside the quadrangle, the 8 screen areas defining 8 directions of enlargements of the size of the quadrangle (North, North-East, East, East-South, South, South-West, West and West-North). Additional at least 4 screen areas are defined inside the quadrangle, the 4 screen areas defining 4 directions of reduction of the size of the quadrangle (North, East, South and West). Accordingly the user will be provided with very easy means of defining the right size of the frame by clicking only once on the screen.

[0014] The screen area(s) could be visualized on the screen as an image, e.g. overlapping the object and defining a certain area or areas of the screen and thus defining specific sensor points in the matrix of sensor points. Taking the above example of a quadrangle, it will be appreciated to visualize the areas defining the 4 directions of reduction, e.g. by drawing two lines, each line connecting two opposite corners of the quadrangle, the two lines thus forming a cross inside the quadrangle. The 8 areas defining the 8 directions of enlargement could be visualized simply by extending both ends of each of the 4 lines defining the quadrangle. This has been shown in FIG. 2.

[0015] The object being resized is thus accomplished by a number of areas constituting “push areas”. When a sensor point senses a touch within one screen area, the reference point of that screen area is used, together with the absolute position of the sensor point (or the position of the sensor point relative to the reference point) to generate a two dimensional vector, i.e. a direction of resizing and a dimension of the resizing. The vector is subsequently used to resize the object, e.g. the quadrangular frame. If the screen is a regular computer screen, the sensor point would be the point on the screen at which the pointer or cursor points.

[0016] The vector, which is defined from the reference point and the sensor point, determines a direction of resizing and a degree of resizing. As an example, the vector is determined directly from the direction and distance from the reference point to the sensor point from which an input has been read. As another example, the vector is determined from the projection of the above mentioned direction and distance from the reference point to the sensor point onto either a horizontal or vertical axis or onto an axis of a predetermined direction. As an example, a quadrangular frame may be resized in the way that one of the sides of the quadrangle, or that side of the quadrangle being nearest the sensor point from which an input has been read, is simply moved to the sensor point from which an input has been read.

[0017] Preferably the invention is combined with a drag object operation. Since the screen area refers to a reference point, a drag operation (click-drag-release) anywhere within the screen area can effectively be interpreted as a drag operation of the reference point. I.e. keeping the vector (or projection of the vector) fixed and thereby resizing the object.

[0018] The differentiating between a dragging or just clicking operation is easily defined by setting a limit in pixels on the pointing device movement while the mouse button or touch screen is depressed.

[0019] The differentiation could further or alternatively be defined by having a time evaluation of the activation/depression of the screen area. As an example, only activation of the area for less than 1 (one) second would result in a clicking operation while longer presses would result in a dragging operation. Typically, the click operation is more drastic in effect than the dragging, and this differentiation therefore further prevents unintentional clicking.

[0020] Preferably, the object is resized by moving a predetermined part of the object from a first position to a second position, the vector connecting the first and the second positions or the vector at least extends in a direction from the first position to the second position. As an example, a small quadrangle is visualized in the middle of a screen. Upon reading an input from a sensor point located near one of the borders of the screen, the side of the quadrangle being nearest the sensor point is moved {fraction (1/1)}st, ½nd, ⅓rd, ¼th, ⅕th, ⅙th, {fraction (1/7)}th, ⅛th, {fraction (1/9)}th, {fraction (1/10)}th or even less than {fraction (1/10)}th of the distance in the direction towards the sensor point.

[0021] Preferably, the reading of an input from a sensor point in a screen area is repeated periodically, e.g. every {fraction (1/10)}th, {fraction (1/9)}th, ⅛th, {fraction (1/7)}th, ⅙th, ⅕th, ¼th, ⅓rd, ½nd, {fraction (1/1)} sec. or even with a lower frequency. Every time an input from a sensor point is read, the size of the object may be changed according to the above described procedure for the resizing of the object, e.g. the object may every {fraction (1/10)}th of a sec. be resized {fraction (1/10)}th of the distance from the reference point to the sensor point.

[0022] In order to give the user a positive feel for the resizing of objects, the degree of resizing may be tuned either manually or automatically. As an example, the user may select a number from one to five, the number being indicative of the resizing impact. By selecting one, the object will only be slightly larger even though the user touches a point relatively far away from the object. By selecting five, the same touch point will enlarge the object by the full distance from the reference point to the sensor point. As an example of automatically tuning of the resizing, the degree of resizing may be determined from the size of the object relative to the size of the screen or relative to the size of an active window used for displaying the object.

[0023] As yet another example, the degree of resizing may be determined from the position of a reference image visualized on the screen. Other references for the automatic tuning of the resizing function may be chosen.

[0024] Taking the above example of a quadrangular frame, it will be appreciated that the reference points are defined so that whenever a user touches a sensor point on the touch screen, the quadrangular frame is resized so that the nearest side of the quadrangle or nearest corner of the quadrangle intersects that sensor point. The remaining corners and lines should remain unchanged in their respective positions on the touch screen whereby the size of the quadrangle is changed.

[0025] Preferably the reference points are visualized on the screen so that the user can visually see which point is being used for calculation of the resizing. As an example one corner of the screen always defines the reference point and as the user touches the screen in order to resize the object, the distance and direction between the touch point and this reference point is calculated for resizing and visualizing the resized object.

[0026] As another example a sharp corner point of the object may define the position of the reference point and as yet another example, the user may point on the screen to first define the reference point, succeedingly the user may point on the screen to define the resizing of the object.

[0027] If the screen comprises more than one object the user may be invited to point out individual objects which are going to be resized, either by keying in a reference name or number of the object or simply by “clicking” out the object on the screen.

[0028] According to another aspect, the present invention relates to a graphical scanner for scanning images and to a way of manipulating the scanned images, the scanner being provided with a graphical touch screen user interface and a CPU adapted to enable the above mentioned user interaction for resizing an object. Via the user interface, the user may define the size of a frame within a scanned image. The frame could as an example define an area, which is to be rescanned with a higher resolution, an area which is to be rescanned with specific settings of the scanner or a frame comprising a picture which is to be exported as a graphical object, e.g. to a color printer for printing.

[0029] According to yet another aspect, the present invention relates to a copy machine for scanning and printing images, the copy machine being provided with a graphical touch screen user interface and a CPU adapted to enable the above mentioned user interaction of resizing a frame, hereby selecting a part of the scanned image to be printed.

[0030] Finally it should be understood that the above-described method of resizing an object or frame could be used together with a regular screen instead of a touch screen. In that case the position of a screen cursor on the screen should be controlled via traditional pointing devices such as a mouse, a trackball, a light pen or a digitizer etc. The position of the cursor in that case takes the place of the position where the user touches the screen and the user would need to indicate the point by clicking a mouse button or in a similar way to indicate that the position is to be used for the resizing.

DETAILED DESCRIPTION OF THE INVENTION

[0031] An embodiment of the invention will now be described in details with reference to the drawing in which:

[0032]FIG. 1 shows an object visualized on a computer touch screen, and

[0033]FIG. 2 shows a view of screen areas for the resizing of the object of FIG. 1.

[0034] Now referring to FIG. 1, the invention relates to an Image Window Tool in the following text referred to as an Object Resize tool. The tool allows for graphical interactive resizing of an object 1 e.g. shown in an Image Window 2. The tool may be programmed in any language and for any computer platform.

[0035] As an example, the Object Resize tool can be implemented as a tool in an application capable of retrieving and displaying raster images. The application, including the tool, can be written in Microsoft Visual C++™, and the target platform can be any of the Microsoft Windows™ operating system (O/S) platforms. In this example, the tool will then be using the graphical capabilities of the Microsoft Windows™ Application Programming Interface (API) to display the tool. This involves obtaining a graphical device context (DC) from the API, and writing the appropriate commands to this DC, to have the O/S display the tool. Similar operations are used for displaying and updating any graphical elements related to the tool (e.g. an underlying raster image).

[0036] The Object Resize tool can be programmed as a part of a Windows™ application or it can be programmed as a separate Microsoft COM component (Component Object Model). The advantages of a separate implementation are easier reusability e.g. in multiple applications and a programmatically nicer and cleaner solution. Where the main application typically would be programmed in C++ with the use of the MFC programming library (Microsoft Foundation Classes), the separate COM component would typically be programmed in C++ with the use of the Microsoft ATL library (Active Template Library). The typical touch screen input device uses a mouse hardware interface (COM, PS/2 or USB), and with the supplied driver, this device acts like any other mouse device in the operating system. I.e. touching the screen will generate mouse events in the Windows™ O/S, and the touches done on a visible part of the Window showing the Object Resizing tool, will cause mouse events to be send to the application.

[0037] The Object Resize tool works on a predefined part 3 of the window. The predefined part is divided into 12 screen areas 4,5—also shown in FIG. 2. The screen areas define four directions (4) for the size reduction of the object and eight directions for the enlargement (5) of the object. The borders between the screen areas are drawn in a stylistic form, see also FIG. 2; the arrows are explanatory and does not necessarily have to be shown in the Image Window.

[0038] When activating the tool, an “X” is graphically shown inside the Paper Frame 3 on the computer screen. Furthermore, a horizontal and vertical line extending from each corner of the Paper Frame towards the perimeter of the Image Window (‘L'shaped’) is shown.

[0039] These lines create four regions inside the Paper Frame, and eight regions outside the Paper Frame. As illustrated with the arrows, these regions are tied two regions to each side of the Paper Frame, and one corner-region to each corner of the Paper Frame.

[0040] The Object Resize Tool may be operated by dragging and dropping but according to the invention “Centre-clicking” as described below, is preferred.

[0041] Dragging

[0042] The Paper Frame side, respectively corner, tied to the clicked region is moved according to the dragged distance.

[0043] Centre-clicking

[0044] The Paper Frame side, respectively corner, tied to the clicked region is placed at the clicked position of the image in the Image Window.

[0045] The Object Resize of an object (i.e. resizing based on specified region as opposed to a resize based on a specified border), can be applied in numerous applications.

[0046] The Object(s) Beneath the Tool

[0047] The basic purpose of the rectangular frame is to select or point-out a part of a layout. This layout is displayed in the same screen element as the rectangle can be interacted on (the Image Viewer), and in a way so that the rectangle (when active) is drawn ‘on top’ of the layout. The layout can consist of different component(s):

[0048] A raster image

[0049] A graphical document consisting of a mixture of

[0050] raster images

[0051] vector graphic objects

[0052] text

[0053] Basically all types of visual objects which can be shown on a 2 dimensional computer screen in a rectangular or differently shaped window that sets the outer perimeter of the tool's regions.

[0054] The Frame

[0055] The rectangle itself can be drawn as a thin line (no border thickness) or as two rectangles inside each other (a rectangle with a border thickness). For the purpose of e.g. illustrating a margin.

[0056] In the case of two combined rectangles, the inter-placement or relationship between them can be defined in different ways:

[0057] It can be a fixed distance between the sides (different for each side).

[0058] A function depending on the rectangles size or position relative to the image (or other involved objects) or relative to the Image Viewer.

[0059] In the case of two combined rectangles the gap between them can optionally be filled with a color or pattern.

[0060] In the case of two combined rectangles it is optional whether it is the inner or outer rectangle that is active, and being adjusted. The passive rectangle will follow the active rectangle, in the way they are related.

[0061] The Regions

[0062] The perimeters of the regions (i.e. the ‘X’ and ‘L's) may preferably be drawn in the image, e.g. with an option for the user to make them invisible.

[0063] The Object Resize can optionally be combined with the conventional Windows resizing way of placing the mouse cursor on the Paper Frame and dragging. The Image Window includes this feature as part of the Object Resize implementation, and uses the conventional arrow cursors in these positions. Actually these two resizing methods combine beautifully in the sense that the dragging operation of the Object Resize is comparable to the conventional mouse dragging, only with a more complex definition of the active region. The Object Resize furthermore adds the centre-click functionality via the defined regions. 

1. A method for defining the size of an object displayed on a computer screen, the computer screen having a matrix of sensor points, said method comprising the steps of: displaying an object on a computer screen, defining at least one screen area having a reference point associated therewith, reading an input from a sensor point in a screen area, calculating a vector between the read input and the reference point of that screen area, and defining the size of the object based on the vector.
 2. A method according to claim 1, wherein the computer screen is a touch screen and wherein the sensor points correspond to sensor points of the touch screen.
 3. A method according to claim 1, wherein the reference point is a corner point of the screen.
 4. A method according to claim 1, wherein the reference point is a point defined by the shape of the object.
 5. A method according to claim 1, wherein the reference point is visualized on the screen.
 6. A method according to claim 1, wherein the border of the screen area is defined by a raster image.
 7. A method according to claim 1, wherein the border of the screen area is defined by a vector graphic object.
 8. A method according to claim 1, wherein the border of the screen area is defined by a text field.
 9. A method according to claim 1, wherein the object is a raster image.
 10. A method according to claim 1, wherein the object is a vector graphic object.
 11. A method according to claim 1, wherein the object is a text field.
 12. A method according to claim 1, wherein the object is a frame for framing an image.
 13. A method according to claim 1, wherein the vector determines a direction of resizing and a degree of resizing.
 14. A method according to claim 1, wherein the direction of the vector is determined as the direction from the reference point to the sensor point from which an input has been read.
 15. A method according to claim 1, wherein the object is resized by moving a predetermined part of the object from a first position to a second position, the vector connecting the first and the second positions.
 16. A method according to claim 1, wherein the object is resized by moving a predetermined part of the object from a first position to a second position, a predetermined fragment of the vector connecting the first and the second positions.
 17. A method according to claim 1, wherein the reading of an input from a sensor point in a screen area is repeated periodically.
 18. A method according to claim 17, wherein the object, upon reading an input from a sensor point, is periodically resized by moving a predetermined part of the object from a first position to a second position, a predetermined fragment of the vector connecting the first and the second positions.
 19. A method according to claim 1, wherein the definition of the size is combined with a drag object operation wherein the length of the vector and accordingly the size of the object is fixed while the object is moved.
 20. A system for presentation of images, the system comprising a screen with a plurality of sensitive points and a processor for processing input from the sensitive points, the processor being adapted to process the input in accordance with the method for defining the size of the object according to claim
 1. 21. A scanner for scanning images and comprising an operator interface with a screen and a processor, the processor being adapted to process input from the screen in accordance with the method for defining the size of the object according to claim
 1. 